<template>
  <FormulaInput
    ref="formulaInput"
    v-model="nvValue"
    size="mini"
    class="flex-1"
    :variables="variables"
    v-bind="$attrs"
    placeholder="显示内容渲染公式"
  />
</template>

<script setup>
import {useNodeData, useNodeDataProps} from "../hooks/useNodeData.js";

const modelValue = defineModel()
const emit = defineEmits()
const props = defineProps({
  ...useNodeDataProps,
  isFormula: true
})
const {
  nvValue,
  variables
} = useNodeData(
  modelValue,
  props,
  emit
)
</script>
